//
//  SpellController.h
//  This file is part of D&D Manager
//
//  Created by Matthew Hutton on 21/01/2007.
//
//
//D&D Manager, a D&D Character and battle management program.
//Copyright (C) 2007, Matthew Hutton
//
//This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License along with this program; if not, write to:
//The Free Software Foundation, Inc.,
//51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#import <Cocoa/Cocoa.h>

@interface SpellController : NSObject{
	IBOutlet NSArrayController *spellController;
	IBOutlet NSWindow *mainWindow;
	IBOutlet NSWindow *durationSheet;
	IBOutlet NSWindow *noOfAttacksSheet;
	IBOutlet NSWindow *damageSheet;
	IBOutlet NSWindow *rangeSheet;
	//ability changing spells.
	IBOutlet NSPopUpButton *spellAbilDie1;
	IBOutlet NSPopUpButton *spellAbilDie2;
	IBOutlet NSPopUpButton *spellAbilDie3;
	IBOutlet NSPopUpButton *spellAbilDie4;
	IBOutlet NSPopUpButton *spellAbilFixed1;
	IBOutlet NSPopUpButton *spellAbilFixed2;
	IBOutlet NSPopUpButton *spellAbilFixed3;
	IBOutlet NSPopUpButton *spellAbilFixed4;
	IBOutlet NSPopUpButton *spellAbilKey1;
	IBOutlet NSPopUpButton *spellAbilKey2;
	IBOutlet NSPopUpButton *spellAbilKey3;
	IBOutlet NSPopUpButton *spellAbilKey4;
	//area of effect label.
	IBOutlet NSTextField *areaOfEffectLabel;
}
-(IBAction)autoDetectSpellLevel:(id)sender;
-(IBAction)durInstantaneousOrPermanentChanged:(id)sender;
-(IBAction)displaySpellDurationBox:(id)sender;
-(IBAction)closeSpellDurationBox:(id)sender;
-(IBAction)displayNoOfAttacksBox:(id)sender;
-(IBAction)closeNoOfAttacksBox:(id)sender;
-(IBAction)displayDamageBox:(id)sender;
-(IBAction)closeDamageBox:(id)sender;
-(IBAction)displayRangeBox:(id)sender;
-(IBAction)closeRangeBox:(id)sender;
-(IBAction)spellAbilityChosen:(id)sender;
-(IBAction)setUpAreaOfEffectLabel:(id)sender;
@end
